home *** CD-ROM | disk | FTP | other *** search
Oberon Text | 1990-12-21 | 4.8 KB | 83 lines | [.Ob./.Ob2] |
- Syntax10.Scn.Fnt
- Syntax10i.Scn.Fnt
- Agenda.SetAlarms Calendar.Sample.Text
- -----------------------------------------
- Commands supported by Agenda
- All commands use a file (typically named Calendar.Text) to look for relevant agenda entries.
- Agenda.SetAlarms file-name get all coming alarms of today, install them in the AlarmClock system, and display them
- Agenda.SetAlarms file-name /! as above, but the output is directed to the log viewer
- Agenda.Today file-name coming alarms of today
- Agenda.Tomorrow file-name alarms for the following day
- Agenda.Week file-name alarms for the current week
- Agenda.NextWeek file-name alarms for the next week
- Agenda.Month file-name alarms for the current month
- Agenda.Month file-name number alarms for the month numbered
- Commands supported by AlarmClock tool
- AlarmClock.ClearAlarms
- Clears installed alarms.
- AlarmClock.Start [inverse]
- Open an AlarmClock viewer; starts AlarmClock if it is not already running.
- Option "inverse" declares black-on-white to be the default video mode (otherwise white-on-black is used).
- AlarmClock.GetWarnings
- Calls the handlers for pending warnings in the order of their occurance. A handler may decide to
- scan forwards for further warnings that it can handle (by performing type tests). Each handled
- warning (except for the one the handler was originally called for) must be marked by setting the
- flag handled.
- Syntax for entries in calendar files used by the Agenda tool cas, 31 Oct 88
- The Agenda tool uses standard text files. Each line is either empty, a comment, or a single calendar entry.
- Comment lines begin with one of the following special characters: _ (shift -) | (shift \) *
- Each individual calendar entry follows the syntax:
- $ Entry = [">"] Date ";" Time [";" Location [";" Message ]].
- $ Date = [Weekday] [FromDate] ["-" TillDate] ["!" AlertDate].
- $ Time = [FromTime] ["-" TillTime] ["!" AlertTime].
- $ Location = "character string w/o ";" and CR".
- $ Message = "character string w/o CR".
- $ FromDate, TillDate, AlertDate = DateForm.
- $ FromTime, TillTime, AlertTime = TimeForm.
- The optional ">" declares urgent entries (used as hint to module AlarmClock); results in a flashing screen upon alarm time.
- The Date field defines a weekday, a validity and an alert range. In the full form W,F-T!A the weekday range is W,
- the validity range is [F..T], and the alert range is [A-T]. The validity range denotes the range actually occupied by
- the calendar entry, while the alert range allows early reminders. Each of the date fields follows the syntax:
- $ Weekday = {WDayRange ","}.
- $ WDayRange = wDayName | (wDayName "-" wDayName).
- $ wDayName = "monday" | "tuesday" | "wednesday" |... "saturday" | "sunday".
- $ = "montag" | "dienstag" | "mittwoch" |... "samstag" | "sonntag".
- $ DateForm = dayNum "." [MonthID "." [yearID]].
- $ = monthName [yearID].
- $ = yearID.
- $ dayNum = 1|2|3|... 30|31.
- $ MonthID = monthNum | monthName.
- $ monthNum = 1|2|3|... 11|12.
- $ monthName = "january" | "february" | "march" |... "november" | "december".
- $ = "januar" | "februar" | "m
- rz" |... "november" | "dezember".
- $ yearID = actYearNum | yearNum.
- $ actYearNum = ["'"] 0|1|2|... 98|99.
- $ yearNum = 100|101|102|... 9998|9999.
- The Time field defines a validity and an alert range. In the full form F-T!A the validity range is [F..T], and the
- alert range is [A-T]. These are similar to the corresponding date ranges and follow the syntax:
- $ TimeForm = hour [":" minute].
- $ hour = 0|1|2|... 22|23.
- $ minute = 0|1|2|... 58|59.
- Remarks:
- - wDayName and monthName are not case sensitive (true for
- , too); also it is sufficient to give 2 or more
- (for wDayName) resp. 3 or more (for monthName) correct prefix characters: "Su" for "sunday" is OK.
- - for enhanced readability, the comma (,) after the last WDayRange may be left out if no further date form
- follows: Mo-Fr; 19:00;... is OK.
- - actYearNum (i.e. years between 0 and 99) is extended to 19xx; for example 88 is interpreted as 1988.
- ('88 is OK, too.)
- - leading spaces (for character sequences) and leading zeroes (for numbers) are ignored.
- Examples:
- Montag; Every monday an (empty) alarm
- July; Every day in every july
- Tue, August; Every tuesday in august
- wed, 16.-22.; Every wednesday that falls between 16. and 22. in every month
- ;10 Every day at 9:45
- ;!10 Every day at 10:00
- Mo-Fr, 1. Jan; 1:23-23:45!0; Here-and-there; A happy day!
- Signals an alarm at the first possible time after 0:00 that at location
- "Here-and-there" the message "A happy day!" applies, if january 1st
- falls on a working day that year.
- cas 15 May 90
-